﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BlueLotus7.Web
{
    /// <summary>
    /// Class for GridRow
    /// </summary>
    public class GridRow
    {
        #region Properties

        /// <summary>
        /// Gets or sets a value of ID as unique identity of viewModel.
        /// </summary>
        public string ID
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets a value of row permission
        /// </summary>
        public int RowPermission
        {
            get;
            set;
        }

        /// <summary>
        /// Gets a value of list of <c>GridCell</c> objects.
        /// </summary>
        public List<GridCell> Cells
        {
            get;
            protected set;
        }

        #endregion

        public GridRow()
        {
            this.Cells = new List<GridCell>();
            this.RowPermission = 0x07;
        }
    }
}